# define _CRT_SECURE_NO_WARNINGS 1
#include"list.h"
#include"Reverse_Iterator.h"
int main() {
	yh::list<int> l;
	l.push_back(1);
	l.push_back(2);
	l.push_back(3);
	l.push_back(4);
	l.push_back(5);
	//yh::__List_iterator<int> it = l.begin();
	/*yh::list<int>::const_iterator it = l.cbegin();
	while (it != l.cend()) {
		cout << *it << " ";
		++it;
	}
	cout << endl;*/
	yh::list<int>::const_reverse_iterator it2 = l.crbegin();
	while (it2 != l.crend()) {
		cout << *it2 << " ";
		++it2;
	}
	cout << endl;
	return 0;

	return 0;
}